<?php /* Smarty version 2.6.12, created on 2008-10-30 10:53:03
         compiled from main/search_sort_by.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'replace', 'main/search_sort_by.tpl', 2, false),array('modifier', 'cat', 'main/search_sort_by.tpl', 2, false),array('modifier', 'amp', 'main/search_sort_by.tpl', 2, false),array('modifier', 'escape', 'main/search_sort_by.tpl', 13, false),)), $this); ?>
<?php func_load_lang($this, "main/search_sort_by.tpl","lbl_sort_by,lbl_sort_by,lbl_sort_direction,lbl_sort_by"); ?><?php if ($this->_tpl_vars['url'] == '' && $this->_tpl_vars['navigation_script'] != ''):  $this->assign('url', ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['navigation_script'])) ? $this->_run_mod_handler('replace', true, $_tmp, "&", "&amp;") : smarty_modifier_replace($_tmp, "&", "&amp;")))) ? $this->_run_mod_handler('cat', true, $_tmp, "&amp;") : smarty_modifier_cat($_tmp, "&amp;")));  elseif ($this->_tpl_vars['url'] != ''):  $this->assign('url', ((is_array($_tmp=$this->_tpl_vars['url'])) ? $this->_run_mod_handler('amp', true, $_tmp) : smarty_modifier_amp($_tmp)));  endif; ?>
<table cellspacing="0" cellpadding="0">
<tr>
	<td class="SearchSortTitle"><?php echo $this->_tpl_vars['lng']['lbl_sort_by']; ?>
:</td>
<?php $_from = $this->_tpl_vars['sort_fields']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['name'] => $this->_tpl_vars['field']):
 if ($this->_tpl_vars['navigation_page'] > 1):  $this->assign('cur_url', ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['url'])) ? $this->_run_mod_handler('cat', true, $_tmp, "page=") : smarty_modifier_cat($_tmp, "page=")))) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['navigation_page']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['navigation_page'])))) ? $this->_run_mod_handler('cat', true, $_tmp, "&amp;sort=") : smarty_modifier_cat($_tmp, "&amp;sort=")))) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['name']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['name'])))) ? $this->_run_mod_handler('cat', true, $_tmp, "&amp;sort_direction=") : smarty_modifier_cat($_tmp, "&amp;sort_direction=")));  else:  $this->assign('cur_url', ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['url'])) ? $this->_run_mod_handler('cat', true, $_tmp, "sort=") : smarty_modifier_cat($_tmp, "sort=")))) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['name']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['name'])))) ? $this->_run_mod_handler('cat', true, $_tmp, "&amp;sort_direction=") : smarty_modifier_cat($_tmp, "&amp;sort_direction=")));  endif; ?>
	<?php if ($this->_tpl_vars['name'] == $this->_tpl_vars['selected']): ?>
	<td><a class="SearchSortLink" href="<?php echo $this->_tpl_vars['cur_url'];  if ($this->_tpl_vars['direction'] == 1): ?>0<?php else: ?>1<?php endif; ?>" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['lng']['lbl_sort_by'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
: <?php echo $this->_tpl_vars['field']; ?>
"><img src="<?php echo $this->_tpl_vars['ImagesDir']; ?>
/<?php if ($this->_tpl_vars['direction']): ?>darrow.gif<?php else: ?>uarrow.gif<?php endif; ?>" class="SearchSortImg" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['lng']['lbl_sort_direction'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /></a></td>
	<?php endif; ?>
	<td class="SearchSortCell"><a class="SearchSortLink" href="<?php echo $this->_tpl_vars['cur_url'];  if ($this->_tpl_vars['name'] == $this->_tpl_vars['selected']):  if ($this->_tpl_vars['direction'] == 1): ?>0<?php else: ?>1<?php endif;  else:  echo $this->_tpl_vars['direction'];  endif; ?>" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['lng']['lbl_sort_by'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
: <?php echo $this->_tpl_vars['field']; ?>
"><?php if ($this->_tpl_vars['name'] == $this->_tpl_vars['selected']): ?><b><?php endif;  echo $this->_tpl_vars['field'];  if ($this->_tpl_vars['name'] == $this->_tpl_vars['selected']): ?></b><?php endif; ?></a></td>
<?php endforeach; endif; unset($_from); ?>
</tr>
</table>